package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.WorkOrderTagEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author ly1666
 * @date 2019/3/19 下午2:22
 * @since v1.0
 * @version v1.0
 */
@Repository
@Mapper
public interface WorkOrderTagDao {

    Integer insert(WorkOrderTagEntity workOrderTag);

    Integer update(WorkOrderTagEntity workOrderTag);

    List<WorkOrderTagEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param")Map<String ,Object>  param);

    Integer minusNum(@Param("param") Map<String, Object> modelMap, @Param("minusNumMap") Map<Integer, Integer> minusNumMap);

    Integer numOperation(@Param("param") Map<String, Object> modelMap);

    WorkOrderTagEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);
}
